package com.qf.air.service.impl;

import com.qf.air.entity.District;
import com.qf.air.mapper.DistrictMapper;
import com.qf.air.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 维多利加
 * @Date: 2021/3/20 11:08
 */
@Service
public class DistrictServiceImpl implements DistrictService {
    @Autowired
    private DistrictMapper districtMapper;
    @Override
    public List<District> findAll() {
        List<District> allDistrict = districtMapper.findAllDistrict();

        return allDistrict;
    }

    @Override
    public String findDistrictNameById(Integer districtId) {
        return districtMapper.findNameById(districtId);
    }
}
